package com.githan.securitymysql.mapper;

import com.githan.securitymysql.entity.Role;
import com.githan.securitymysql.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/4/7 20:12
 */
@Mapper
public interface UserMapper{

    User loadUserByUsername(String username);

    List<Role> getUserRolesById(Integer id);

}
